package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author： ccm
 * time： 2017/6/21.
 * description：
 */

public class AccompentHospitalBean {

    /**
     * code : 2000
     * data : {"firstPage":true,"lastPage":false,"numberOfElements":10,"pageNo":0,"start":0,"totalPages":11,"pageSize":10,"content":[{"levelInfo":"2","address":"上海市杨浦区长海路225号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt001.jpg","province":"杨浦区","city":"上海市","name":"上海东方肝胆外科医院","id":"1030","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区张衡路528号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt002.jpg","province":"杨浦区","city":"上海市","name":"上海中医药大学附属曙光医院东院","id":"1031","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区普安路185号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt002.jpg","province":"黄浦区","city":"上海市","name":"上海中医药大学附属曙光医院西院","id":"1032","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市徐汇区宛平南路725号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt003.jpg","province":"徐汇区","city":"上海市","name":"上海中医药大学附属龙华医院","id":"1033","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区东方路1630号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"浦东新区","city":"上海市","name":"上海交通大学医学院附属仁济医院","id":"1035","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区浦建路160号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"浦东新区","city":"上海市","name":"上海交通大学医学院附属仁济医院东院","id":"1036","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市闵行区浦江镇江月路2000号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"闵行区","city":"上海市","name":"上海交通大学医学院附属仁济医院南院","id":"1037","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区山东中路145号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"黄浦区","city":"上海市","name":"上海交通大学医学院附属仁济医院西院","id":"1038","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市杨浦区控江路1665号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt007.jpg","province":"杨浦区","city":"上海市","name":"上海交通大学医学院附属新华医院","id":"1040","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区瑞金二路197号（永嘉路口）","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt008.jpg","province":"黄浦区","city":"上海市","name":"上海交通大学医学院附属瑞金医院","id":"1041","serviceName":"老年陪诊"}],"totalElements":107}
     * message : 请求成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        /**
         * firstPage : true
         * lastPage : false
         * numberOfElements : 10
         * pageNo : 0
         * start : 0
         * totalPages : 11
         * pageSize : 10
         * content : [{"levelInfo":"2","address":"上海市杨浦区长海路225号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt001.jpg","province":"杨浦区","city":"上海市","name":"上海东方肝胆外科医院","id":"1030","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区张衡路528号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt002.jpg","province":"杨浦区","city":"上海市","name":"上海中医药大学附属曙光医院东院","id":"1031","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区普安路185号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt002.jpg","province":"黄浦区","city":"上海市","name":"上海中医药大学附属曙光医院西院","id":"1032","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市徐汇区宛平南路725号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt003.jpg","province":"徐汇区","city":"上海市","name":"上海中医药大学附属龙华医院","id":"1033","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区东方路1630号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"浦东新区","city":"上海市","name":"上海交通大学医学院附属仁济医院","id":"1035","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市浦东新区浦建路160号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"浦东新区","city":"上海市","name":"上海交通大学医学院附属仁济医院东院","id":"1036","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市闵行区浦江镇江月路2000号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"闵行区","city":"上海市","name":"上海交通大学医学院附属仁济医院南院","id":"1037","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区山东中路145号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt005.jpg","province":"黄浦区","city":"上海市","name":"上海交通大学医学院附属仁济医院西院","id":"1038","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市杨浦区控江路1665号","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt007.jpg","province":"杨浦区","city":"上海市","name":"上海交通大学医学院附属新华医院","id":"1040","serviceName":"老年陪诊"},{"levelInfo":"2","address":"上海市黄浦区瑞金二路197号（永嘉路口）","smallImage":"http://7xpx05.com2.z0.glb.qiniucdn.com/sxt008.jpg","province":"黄浦区","city":"上海市","name":"上海交通大学医学院附属瑞金医院","id":"1041","serviceName":"老年陪诊"}]
         * totalElements : 107
         */

        private boolean firstPage;
        private boolean lastPage;
        private int numberOfElements;
        private int pageNo;
        private int start;
        private int totalPages;
        private int pageSize;
        private int totalElements;
        private List<ContentBean> content;

        public boolean isFirstPage() {
            return firstPage;
        }

        public void setFirstPage(boolean firstPage) {
            this.firstPage = firstPage;
        }

        public boolean isLastPage() {
            return lastPage;
        }

        public void setLastPage(boolean lastPage) {
            this.lastPage = lastPage;
        }

        public int getNumberOfElements() {
            return numberOfElements;
        }

        public void setNumberOfElements(int numberOfElements) {
            this.numberOfElements = numberOfElements;
        }

        public int getPageNo() {
            return pageNo;
        }

        public void setPageNo(int pageNo) {
            this.pageNo = pageNo;
        }

        public int getStart() {
            return start;
        }

        public void setStart(int start) {
            this.start = start;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public List<ContentBean> getContent() {
            return content;
        }

        public void setContent(List<ContentBean> content) {
            this.content = content;
        }

        public static class ContentBean implements Parcelable {
            /**
             * levelInfo : 2
             * address : 上海市杨浦区长海路225号
             * smallImage : http://7xpx05.com2.z0.glb.qiniucdn.com/sxt001.jpg
             * province : 杨浦区
             * city : 上海市
             * name : 上海东方肝胆外科医院
             * id : 1030
             * serviceName : 老年陪诊
             */

            private String levelInfo;
            private String address;
            private String smallImage;
            private String province;
            private String city;
            private String name;
            private String id;
            private String serviceName;

            public String getLevelInfo() {
                return levelInfo;
            }

            public void setLevelInfo(String levelInfo) {
                this.levelInfo = levelInfo;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getSmallImage() {
                return smallImage;
            }

            public void setSmallImage(String smallImage) {
                this.smallImage = smallImage;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getServiceName() {
                return serviceName;
            }

            public void setServiceName(String serviceName) {
                this.serviceName = serviceName;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.levelInfo);
                dest.writeString(this.address);
                dest.writeString(this.smallImage);
                dest.writeString(this.province);
                dest.writeString(this.city);
                dest.writeString(this.name);
                dest.writeString(this.id);
                dest.writeString(this.serviceName);
            }

            public ContentBean() {
            }

            protected ContentBean(Parcel in) {
                this.levelInfo = in.readString();
                this.address = in.readString();
                this.smallImage = in.readString();
                this.province = in.readString();
                this.city = in.readString();
                this.name = in.readString();
                this.id = in.readString();
                this.serviceName = in.readString();
            }

            public static final Parcelable.Creator<ContentBean> CREATOR = new Parcelable.Creator<ContentBean>() {
                @Override
                public ContentBean createFromParcel(Parcel source) {
                    return new ContentBean(source);
                }

                @Override
                public ContentBean[] newArray(int size) {
                    return new ContentBean[size];
                }
            };
        }
    }
}
